package com.flying.fish.gateway.rest;

import com.flying.fish.DynamicGatewayApplication;
import com.flying.fish.formwork.util.ApiResult;
import com.flying.fish.formwork.util.Constants;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: maran
 * 描述   :
 * 公司   :
 * 创建人 : 马然
 * 时间   : 2021/7/15 17:16
 */
@RestController
public class PingController {

    @RequestMapping(value = "/ping", method = {RequestMethod.GET})
    public ApiResult ping() {
        return new ApiResult(Constants.SUCCESS, "pong", DynamicGatewayApplication.port);
    }
}
